<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  添加
@author LuoAnDong
@since 2019-06-08 09:28:52
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="addForm" style="float:left;width:100%">
								
									<input type="hidden" name="formToken" th:value="${session.formToken}" />

<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">是否死亡</label>
	<div class="col-md-9">
		<input class="form-control" id="areadlyDead" type="text" name="areadlyDead" placeholder="是否死亡">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">消息内容</label>
	<div class="col-md-9">
		<input class="form-control" id="businessBody" type="text" name="businessBody" placeholder="消息内容">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">消息数据类型</label>
	<div class="col-md-9">
		<input class="form-control" id="businessDateType" type="text" name="businessDateType" placeholder="消息数据类型">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">业务主键</label>
	<div class="col-md-9">
		<input class="form-control" id="businessId" type="text" name="businessId" placeholder="业务主键">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">consumerQueue</label>
	<div class="col-md-9">
		<input class="form-control" id="consumerQueue" type="text" name="consumerQueue" placeholder="">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">创建时间</label>
	<div class="col-md-9">
		<input class="form-control" id="createTime" type="text" name="createTime" placeholder="创建时间">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">创建人</label>
	<div class="col-md-9">
		<input class="form-control" id="creater" type="text" name="creater" placeholder="创建人">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">编辑时间</label>
	<div class="col-md-9">
		<input class="form-control" id="editTime" type="text" name="editTime" placeholder="编辑时间">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">编辑人</label>
	<div class="col-md-9">
		<input class="form-control" id="editor" type="text" name="editor" placeholder="编辑人">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">扩展字段1</label>
	<div class="col-md-9">
		<input class="form-control" id="field1" type="text" name="field1" placeholder="扩展字段1">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">扩展字段2</label>
	<div class="col-md-9">
		<input class="form-control" id="field2" type="text" name="field2" placeholder="扩展字段2">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">扩展字段3</label>
	<div class="col-md-9">
		<input class="form-control" id="field3" type="text" name="field3" placeholder="扩展字段3">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">消息发送时间</label>
	<div class="col-md-9">
		<input class="form-control" id="messageSendTimes" type="text" name="messageSendTimes" placeholder="消息发送时间">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">消息状态</label>
	<div class="col-md-9">
		<input class="form-control" id="messageStatus" type="text" name="messageStatus" placeholder="消息状态">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">消息备注</label>
	<div class="col-md-9">
		<input class="form-control" id="remark" type="text" name="remark" placeholder="消息备注">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">消息版本</label>
	<div class="col-md-9">
		<input class="form-control" id="versions" type="text" name="versions" placeholder="消息版本">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">消息主题</label>
	<div class="col-md-9">
		<input class="form-control" id="topic" type="text" name="topic" placeholder="消息主题">
	</div>
</div>
							
								</form>
							</div>

							<div class="card-footer">
								<button class="btn btn-primary" style="float:right" onclick="save()" type="button">保存</button>
							</div>

						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<script th:src="@{/asserts/vendors/jquery/js/jquery.min.js}"></script>
	<script th:src="@{/asserts/vendors/jquery.form/jquery.form.min.js}"></script>

	<script th:src="@{/asserts/vendors/layer/layer.js}"></script>
	<script th:src="@{/asserts/js/global.js}"></script>

	<script type="text/javascript">
		// 保存操作
		function save() {
			console.log('save');
			$("#addForm").ajaxSubmit({
				url : ctx+"base/message/transactionMessageHistory/save",
				type : "POST",
				headers : {
					'Content-Type' : 'application/x-www-form-urlencoded'
				},
				success : function(data) {
					if (data.code == 200) {
						layer.msg("操作成功!");
					} else {
						layer.alert(data.message);
					}
				}
			});
		}
	</script>

</body>
</html>

